package com.o2opays.wechat.pojo;

/**
 * Created by tugou on 2017/9/10.
 */
public class HttpResult {
    public String code;
    public String msg;
    public Object data;

    public static HttpResult OK(Object obj){
        HttpResult result = new HttpResult();
        result.code = "00000";
        result.msg = "OK";
        result.data = obj;
        return result;
    }

    public static HttpResult ERROR(String code,String msg){
        HttpResult result = new HttpResult();
        result.code = code;
        result.msg = msg;
        return result;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
